<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" type="text/css" media="screen" href="/MemberTest/css/member.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function check11(){
	 	var f = document.f1;
		if(f.member_id.value==""){
			alert("아이디를 입력하세요");
			f.member_id.focus();
			return;
		}
		if(f.memScrtNo.value==""){
			alert("비밀번호를 입력하세요");
			f.memScrtNo.focus();
			return;
		} 
		f.submit();
	}
		document.onkewpress = keyPress;
	function enter(){
		var ieKey = window.event.keyCode;
		if(ieKey == 13){
			check11();
		}
	}
</script> 
</head>
<body>
	<form action="login.do" name="f1" method="post" style="margin-left: 5px;">
		<c:choose>
			<c:when test="${empty login_info }">
				<table>
				  <tr>
					  <td colspan="2">
							<ul>
								<li>
									<a href="member/member_join.jsp" class="member_join"><strong>회원가입</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;
								</li>
								<li>
									<a href="member/searchId.jsp" class="common">아이디</a>
								</li>
								<li>
									<a href="member/searchPass.jsp" class="common">비밀번호 찾기</a>
								</li>
							</ul>
						</td>
					</tr>
					<tr>
						<td align="left"><input type="text" name="member_id" onFocus="this.className='id_focus'" onBlur="if ( this.value == '' ) { this.className='id_blur' }" class='id_blur' size="19"></td>
						<td rowspan="2"><img src="/MemberTest/img/btn_login4.gif" onclick="check11()" style="cursor: pointer;"></td>
					</tr>
					<tr>
						<td align="left"><input type="password" name="memScrtNo" onFocus="this.className='pw_focus'" onBlur="if ( this.value == '' ) { this.className='pw_blur' }" class='pw_blur' onkeydown="enter()"></td>
					</tr>
				</table>
			</c:when>
			<c:otherwise>
				${login_info.member_id }님 &nbsp;&nbsp;<br>
				<a href="loginOut.do">로그아웃</a>
			</c:otherwise>
		</c:choose>
	</form>
</body>
</html>